package implementations.sm_kernel;

import interfaces.kernel.JCL_orb;
import interfaces.kernel.JCL_result;
import interfaces.kernel.JCL_task;

import java.util.Map;

import commom.GenericConsumer;
import commom.GenericResource;

public class TaskConsumer<S extends JCL_task> extends GenericConsumer<S>{
	
	private Map<String, JCL_result> results;

	public TaskConsumer(GenericResource<S> re, Map<String, JCL_result> results) {
		
		super(re);		
		this.results = results;
	}

	@Override
	protected void doSomething(S str) {
		// TODO Auto-generated method stub
		JCL_orb<JCL_result> orb = JCL_orbImpl.getInstance();
		orb.execute(str, results);	
				
	}
	
}
